import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/homeView/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/aboutView/AboutView.vue'),
    },
    {
      path: '/aboutProvide',
      name: 'Provide',
      component: () => import('../views/aboutProvide/aboutProvide.vue'),
    },
    {
      path: '/aboutUseHooks',
      name: 'UseHooks',
      component: () => import('../views/aboutUseHooks/index.vue'),
    },
  ],
})

export default router
